class CTP01PlayerInput extends PlayerInput;

var IntPoint MousePosition; 

event PlayerInput(float DeltaTime)
{
	// Ensure we have a valid HUD
	if (myHUD != None) 
	{
		if(`TimeSince(CreationTime) > 0.5)
		{
			// Add the aMouseX to the mouse position and clamp it within the viewport width
			MousePosition.X = Clamp(MousePosition.X + aMouseX, 0, myHUD.SizeX); 

			// Add the aMouseY to the mouse position and clamp it within the viewport height
			MousePosition.Y = Clamp(MousePosition.Y - aMouseY, 0, myHUD.SizeY); 
		}
		else
		{
			MousePosition.X = 0.5 * myHUD.SizeX;
			MousePosition.Y = 0.5 * myHUD.SizeY;
		}		
	}

	Super.PlayerInput(DeltaTime);
}

DefaultProperties
{
}
